#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
typedef long long ll;
const int MAXN=100;
ll C[MAXN][MAXN];
void YanHui() {
	memset(C, 0, sizeof(C));
	for (int i=0; i<MAXN; ++i) {
		C[i][0]=1;
		for (int j=1; j<=i; ++j) C[i][j] = C[i-1][j-1] + C[i-1][j];
	}
}
int main() {
	YanHui();
	int n;
	cin>>n;
	for (int i=0; i<n; ++i) {
		for (int j=0; j<=i; ++j) printf("%lld%c", C[i][j], (j==i?'\n':' '));
	}
	return 0;
}
